/// list : [
///   {
///     "id":"61",
///     "nickName":"JDY2207213624默认用户",
///     "phone":"15623005913",
///     "userId":1547171271555522576,
///     "createTime":1658990512,
///     "updateTime":1658990512,
///     "content":"sofa"
///   },{
///     "id":"62",
///     "nickName":"JDY2207213624默认用户",
///     "phone":"15623005913",
///     "userId":1547171271555522576,
///     "createTime":1658990727,
///     "updateTime":1658990727,
///     "content":"first"
///   },
/// ]
/// pageCurrent : 1
/// pageSize : 10
/// total : 3
/// hasNext : false
/// pages : 0

class CommentListEntity {
  CommentListEntity({
    this.list,
    this.pageCurrent,
    this.pageSize,
    this.total,
    this.hasNext,
    this.pages,
  });

  CommentListEntity.fromJson(dynamic json) {
    if (json['list'] != null) {
      list = [];
      json['list'].forEach((v) {
        list?.add(CommentEntity.fromJson(v));
      });
    }
    pageCurrent = json['pageCurrent'];
    pageSize = json['pageSize'];
    total = json['total'];
    hasNext = json['hasNext'];
    pages = json['pages'];
  }

  List<CommentEntity>? list;
  int? pageCurrent;
  int? pageSize;
  int? total;
  bool? hasNext;
  int? pages;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (list != null) {
      map['list'] = list?.map((v) => v.toJson()).toList();
    }
    map['pageCurrent'] = pageCurrent;
    map['pageSize'] = pageSize;
    map['total'] = total;
    map['hasNext'] = hasNext;
    map['pages'] = pages;
    return map;
  }
}

class CommentEntity {
  CommentEntity({
    this.id,
    this.nickName,
    this.phone,
    this.userId,
    this.createTime,
    this.updateTime,
    this.content,
  });

  CommentEntity.fromJson(dynamic json) {
    id = json['id'];
    nickName = json['nickName'];
    phone = json['phone'];
    userId = json['userId'];
    createTime = json['createTime'];
    updateTime = json['updateTime'];
    content = json['content'];
  }

  String? id;
  String? nickName;
  String? phone;
  int? userId;
  int? createTime;
  int? updateTime;
  String? content;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['nickName'] = nickName;
    map['phone'] = phone;
    map['userId'] = userId;
    map['createTime'] = createTime;
    map['updateTime'] = updateTime;
    map['content'] = content;
    return map;
  }
}
